package com.situ.crm.service.impl;

import com.situ.crm.pojo.entity.Customer;
import com.situ.crm.mapper.CustomerMapper;
import com.situ.crm.service.ICustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements ICustomerService {
	@Autowired
	private CustomerMapper customerMapper;
	
	@Override
	public List<Customer> selectAll() {
		return customerMapper.selectByPage(new Customer());
	}

	@Override
	public List<Customer> selectCustomerLoss() {
		return customerMapper.selectCustomerLoss();
	}
}
